package com.hanbang.maige.view.aboutme.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.hanbang.maige.R;
import com.hanbang.maige.code.base.view.activity.BaseMvpActivity;
import com.hanbang.maige.pressenter.aboutme.MyMessagePresenter;
import com.hanbang.maige.utils.ui.DrawableUtils;
import com.hanbang.maige.view.aboutme.IAboutMeBaseView;
import com.hanbang.maige.widget.autoloadding.SuperRecyclerView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by 方朝辉 on 2016/11/3.
 */

public class MyMessageActivity extends BaseMvpActivity<IAboutMeBaseView.IMyMessageView, MyMessagePresenter> implements IAboutMeBaseView.IMyMessageView {
    @BindView(R.id.dianzanIv)
    ImageView dianzanIv;
    @BindView(R.id.pinglunIv)
    ImageView pinglunIv;
    @BindView(R.id.tongzhiIv)
    ImageView tongzhiIv;
    @BindView(R.id.switchRoot)
    SuperRecyclerView switchRoot;

    @Override
    public MyMessagePresenter initPressenter() {
        return new MyMessagePresenter();
    }

    @Override
    public int getContentView() {
        return R.layout.activity_mymessage;
    }

    public static void startUI(Context context) {
        Intent intent = new Intent(context, MyMessageActivity.class);
        context.startActivity(intent);
    }
    @Override
    public void initView() {
        toolbar.setBack(this);
        toolbar.setTitle("我的消息");
        dianzanIv.setBackgroundDrawable(DrawableUtils.getCircleDrawable(R.color.main_color,R.color.translucent));
        pinglunIv.setBackgroundDrawable(DrawableUtils.getCircleDrawable(R.color.yellow_fe,R.color.translucent));
        tongzhiIv.setBackgroundDrawable(DrawableUtils.getCircleDrawable(R.color.red_f5,R.color.translucent));
    }

    @Override
    public void parseIntent(Intent intent) {

    }

    @Override
    public void clearData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.dianzanIv, R.id.pinglunIv, R.id.tongzhiIv})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.dianzanIv:
                break;
            case R.id.pinglunIv:
                break;
            case R.id.tongzhiIv:
                break;
        }
    }
}
